package cn.tedu.baidashi.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode
@Accessors(chain = true)
public class ItemsVO implements Serializable {


    //商品名称
    @NotBlank(message = "商品名称不能为空")
    private String itemsName;
    //商品分类id
    @NotNull(message = "分类名称不能为空")
    private Integer catId;
    //商品主图
    @NotBlank(message ="商品主图不能为空")
    private String itemsImage;

    //商品简述
    @NotBlank(message = "商品简介不能为空")
    private String itemsSynopsis;
    //商品单价
    @NotNull(message = "商品单价不能为空")
    private BigDecimal unitPrice;
    //商品规格
    @NotBlank(message = "商品规格不能为空")
    private String specification;
    //商品库存
    @NotNull(message = "商品库存不能为空")
    private Integer stock;
    //商品状态
    @NotNull(message = "商品状态不能为空")
    private Integer itemsStatus;
    //商品介绍
    @NotBlank(message = "商品介绍不能为空")
    private String itemsContent;
}
